package com.ms.game.characterInfo.db;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.xpec.c4.db.model.log.basic.BasicLogModel;

/**
 * 記錄玩家的今日資料(今日押注，今日得分)
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@Table(name="today_character_info")
@org.hibernate.annotations.Table(
		appliesTo = "today_character_info", indexes = {
				@org.hibernate.annotations.Index(name = "IDX_PLAYER_ID", columnNames = { "playerID","eventDate"}),
		})
public class CharacterTodayInfoLog extends BasicLogModel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5929713151719525251L;

	/**
	 * 玩家GUID
	 */
	String playerID;
	
	/**
	 * 帳號GUID
	 */
	String accountID;
	
	/**
	 * 玩家名稱
	 */
	String name;
	
	/**
	 * 每日押注
	 */
	BigDecimal dailyBet;
	
	/**
	 * 每日得分
	 */
	BigDecimal dailyScore;

	public String getPlayerID() {
		return playerID;
	}

	public String getName() {
		return name;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getDailyBet() {
		return dailyBet;
	}

	@Column(precision = 19, scale = 2, columnDefinition = "DECIMAL(19,2) default 0.0")
	public BigDecimal getDailyScore() {
		return dailyScore;
	}

	public void setPlayerID(String playerID) {
		this.playerID = playerID;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setDailyBet(BigDecimal dailyBet) {
		this.dailyBet = dailyBet;
	}

	public void setDailyScore(BigDecimal dailyScore) {
		this.dailyScore = dailyScore;
	}

	public String getAccountID() {
		return accountID;
	}

	public void setAccountID(String accountID) {
		this.accountID = accountID;
	}
	
}
